package com.sun.huazhi.aitaskservice.service.impl;

import com.sun.huazhi.aitaskservice.common.mq.RabbitMQConfig;
import com.sun.huazhi.aitaskservice.dao.entity.VideoTaskMessage;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VideoTaskProducer {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendVideoTask(VideoTaskMessage message) {
        rabbitTemplate.convertAndSend(RabbitMQConfig.VIDEO_QUEUE, message);
    }
}
